<?php


namespace app\controllers;


use yii\helpers\VarDumper;
use yii\web\Controller;

class TestController extends Controller
{
    public function beforeAction($action)
    {

        echo 0;
        return parent::beforeAction($action);

    }

    public function afterAction($action, $result)
    {
        echo 2;
    }

    public function actionIndex()
    {
        VarDumper::dump(1);
    }
}